package com.yunche.yunchebusiness.mvp.contract

import com.yunche.yunchebusiness.base.mvp.IBasePresenter
import com.yunche.yunchebusiness.base.mvp.IBaseView
import com.yunche.yunchebusiness.entity.FinanceEntity
import com.yunche.yunchebusiness.entity.TenantBankList
import okhttp3.RequestBody

/**
 * Create by Crcker on 2018/12/27 20:15
 * Email: Crcker@163.com
 *
 * 提现
 * 获取总金额
 * 获取银行列表
 */


class FinanceContract {

    interface View : IBaseView {
        fun getMoneySuccess()
        fun getTotalPriceSuccess(financeEntity: FinanceEntity)
        fun getBankListSuccess(bankListEntity: List<TenantBankList>)

    }

    interface Presenter : IBasePresenter<View> {
        fun getMoney(bankId: Int, sum: Float, type: Int)
        fun getTotalPrice()
        fun getBankList(requestBody: RequestBody)
    }
}